package com.gdcvi.scan;

public class 发送器 extends PlayerDecorator{
    public 发送器(Player player,HandConnection connection){
        super(player);
        setConnection(connection);
    }
    private HandConnection connection;

    public HandConnection getConnection() {
        return connection;
    }

    public void setConnection(HandConnection connection) {
        this.connection = connection;
    }

    @Override
    public Hand chuQuan() {
        Hand hand  = getPlayer().chuQuan();
        getConnection().send(hand);
        return hand;
    }
}
